package coml.jiyun.hp.day02.model;

import java.util.ArrayList;

import coml.jiyun.hp.day02.bean.Bean;
import coml.jiyun.hp.day02.net.ReslutCallBack;
import coml.jiyun.hp.day02.util.SqliteUtil;

public class CollectionModel {

    public void query(ReslutCallBack<ArrayList<Bean.ResultsBean>>callBack){
        ArrayList<Bean.ResultsBean> list = SqliteUtil.getInstance()
                .queryAll();
        callBack.onSuccess(list);
    }
}